<?php
class YumRegion extends YumActiveRecord
{
    public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}

    public function tableName()
    {
        return "regions";
    }

    public function loadItems()
    {
        $dbItems = self::model()->findAll();
        $items = array();
        foreach ($dbItems as $dbItem) {
            $items[$dbItem->id] = Yum::t($dbItem->name);
        }
        return $items;
    }
}
?>